package com.sxhalo.fsms.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sxhalo.fsms.domain.SysSettings;
import com.sxhalo.fsms.mapper.SysSettingsMapper;

@Service
public class SysSettingsService {

	@Autowired
	private SysSettingsMapper selfDAO;

	public String getStringValue(String code) {
		String results = "*/5 * * * * ?";//默认5秒
		SysSettings setting = selfDAO.selectByPrimaryKey(code);
		if (setting != null) {
			results = setting.getValue();
		}
		return results;
	}

}
